package demo4.mapper;


import demo4.Util.DBUtil;
import org.springframework.stereotype.Component;

import java.sql.Connection;
import java.sql.SQLException;

@Component
public class UserMapper extends IUserMapper {
	private DBUtil dbUtil;
	
	public UserMapper(DBUtil dbUtil) {
		this.dbUtil = dbUtil;
	}
	
	@Override
	public int insertUser(){
		System.out.println("UserMapper:将用户信息插入到数据库中。。");
		try{
			Connection connection = dbUtil.getConnection();
		}catch (SQLException e){
			e.printStackTrace();
		}
		return 0;
	}
}
